﻿        function SearchProduct(path) 
        {
	        var handle = window.showModalDialog(path+'DialogBoxHostFrame.aspx?url=SearchProduct.aspx?p=0', window,'status:off;center=yes;edge:raised;dialogHeight:500px;dialogWidth:600px;help:0;resizable:0;scrollbar=0');	 
	        if (handle != null && handle != '' && typeof handle != 'undefined') {
	            //__doPostBack("SearchProduct",handle);
	            setValue(handle);
	        }
        }
        function SearchProduct_S(path) 
        {
	        var handle = window.showModalDialog(path+'DialogBoxHostFrame.aspx?url=SearchProduct_S.aspx?p=0', window,'status:off;center=yes;edge:raised;dialogHeight:500px;dialogWidth:600px;help:0;resizable:0;scrollbar=0');	 
	        if (handle != null && handle != '' && typeof handle != 'undefined') {
	            //alert(handle);
	            //__doPostBack("SearchProduct_S",handle);
	            setValue(handle);
	        }
        }        
        function SearchProductDM(path) 
        {
	        var handle = window.showModalDialog(path+'DialogBoxHostFrame.aspx?url=SearchProduct.aspx?p=1', window,'status:off;center=yes;edge:raised;dialogHeight:500px;dialogWidth:600px;help:0;resizable:0;scrollbar=0');	 
	        if (handle != null && handle != '' && typeof handle != 'undefined') {
	            //__doPostBack("SearchProduct",handle);
	            setValue(handle);
	        }
        }        
        function SearchVIP(path) 
        {
	        var handle = window.showModalDialog(path+'DialogBoxHostFrame.aspx?url=SearchVIP.aspx', window,'status:off;center=yes;edge:raised;dialogHeight:500px;dialogWidth:720px;help:0;resizable:0;scrollbar=0');	 
	        if (handle != null && handle != '' && typeof handle != 'undefined') {
	            //__doPostBack("SearchProduct",handle);
	            if(handle=="0")
	            {
	            window.parent.frmright.location="../CustomerArchives/AddVIP.aspx?isorder=1";
	            }
	            else
	            {
	            setVIPValue(handle);
	            }
	        }
        }  
        
               